import request from '@/utils/request'

// 查询研发团队成员展示列表
export function listInfo(query) {
  return request({
    url: '/RDTeam/info/list',
    method: 'get',
    params:query,
  })
}

// 查询研发团队成员展示详细
export function getInfo(memberId) {
  return request({
    url: '/RDTeam/info/' + memberId,
    method: 'get'
  })
}

// 新增研发团队成员展示
export function addInfo(data) {
  return request({
    url: '/RDTeam/info',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'multipart/form-data'  // 手动设置 Content-Type
    }
  })
}

// 修改研发团队成员展示
export function updateInfo(data) {
  return request({
    url: '/RDTeam/info',
    method: 'put',
    data: data,
    headers: {
      'Content-Type': 'multipart/form-data'  // 手动设置 Content-Type
    }
  })
}

// 删除研发团队成员展示
export function delInfo(memberId) {
  return request({
    url: '/RDTeam/info/' + memberId,
    method: 'delete'
  })
}
